import 实现无头单链表.MySingleLinkedList;
import 模拟LinkedList.LinkedList;
import 模拟LinkedList.MyLinkedList;

public class Text {
    public static void main(String[] args) {
        MyLinkedList mySingleLinkedList =new MyLinkedList();
        for (int i = 0; i < 10; i++) {
            mySingleLinkedList.addLast(i+2);
        }
        mySingleLinkedList.display();
        mySingleLinkedList.addIndex(3,100);
        mySingleLinkedList.display();
        System.out.println(mySingleLinkedList.size());
        mySingleLinkedList.remove(3);
        mySingleLinkedList.display();
        mySingleLinkedList.clear();
        mySingleLinkedList.display();
    }
}
